/**
 * 
 */
package com.siriusxm.www.mavenweb;


/**
 * @author sbaral
 *
 */
public class RegisterAction extends LoginAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String confirmPassword;
	
	public String execute() {
		if(!password.equals(confirmPassword)) {
			return "error";
		}
		loginService.register(createUser());
		return "success";
	}

	/**
	 * @return the confirmPassword
	 */
	public String getConfirmPassword() {
		return confirmPassword;
	}

	/**
	 * @param confirmPassword the confirmPassword to set
	 */
	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}
	
	@org.apache.struts2.interceptor.validation.SkipValidation
	public String view() {
		
		return "input";
	}
	

}
